package com.yuandian.management.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yuandian.api.management.entity.ConfKeyword;
import com.yuandian.bpm.common.core.util.R;
import com.yuandian.management.vo.BusinessServerResourceParams;
import com.yuandian.management.vo.SegmentRelationByCodeVo;
import com.yuandian.management.vo.SysBusiRelationByCodeVo;

import java.util.List;

/**
 * 识别关键字表-Service接口
 * @author zfsn
 * @date 2023-3-27
 */
public interface ConfKeywordService extends IService<ConfKeyword> {

	/**
	 * 分页查询
	 * @param confKeyword 筛选条件
	 * @return 通用返回对象
	 */
	Page<ConfKeyword> listPage(ConfKeyword confKeyword);

	/**
	 * 新增数据
	 * @param confKeyword 实例对象
	 * @return 通用返回对象
	 */
	R<String> saveKeyWord(ConfKeyword confKeyword);


	/**
	 * 通过主键更新数据
	 * @param confKeyword 实例对象
	 * @return 通用返回对象
	 */
	R<String> updateKeyWordById(ConfKeyword confKeyword);

    List<ConfKeyword> selectByResourceCodes(List<String> list);

    Page<SysBusiRelationByCodeVo> querySysBusiRelationByResourceCode(BusinessServerResourceParams businessServerResourceParams);

	/**
	 * 通过业务服务资源编码查询网端关联关系列表
	 * @param params 业务服务资源接口请求对象
	 * @return 通用返回对象
	 */
	Page<SegmentRelationByCodeVo> querySegmentRelationByResourceCode(BusinessServerResourceParams params);
}